package com.xjm.childmodule.constant;


import lombok.Data;

/**
 * 与前端交互的协议
 */
@Data
public class SCProtocol {
    /**
     * 建立 websocket 连接成功
     */
    public static final Integer CONNECTION_SUCCESS = 0x9000;
    /**
     * 用户加入匹配大厅响应
     */
    public static final Integer ADD_USER_RESPONSE = 0x9001;
    /**
     * 匹配对手响应
     */
    public static final Integer MATCH_USER_RESPONSE = 0x9002;
    /**
     * 服务器推送本方帧
     */
    public static final Integer SERVER_PUSH_MYSELF_FRAME = 0x9003;
    /**
     * 服务器推送对手帧
     */
    public static final Integer SERVER_PUSH_OPPONENT_FRAME = 0x9004;
    /**
     * 结束游戏响应
     */
    public static final Integer GAME_OVER_RESPONSE = 0x9005;
    /**
     * 对手正在操作
     */
    public static final Integer OPPONENT_IS_OPERATIING = 0x9006;
    /**
     * 心跳
     */
    public static final Integer HEART_BEAT = 0x9007;
    /**
     * 重连帧
     */
    public static final Integer RECONNECT_FRAME = 0x9008;
}
